*::after, *::before {
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #2f323f;
}

.navigation {
  position: fixed;
  inset: 40px 0 40px 20px;
  background: #FFF;
  width: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .5s;
}

.navigation.active {
  width: 250px;
}

.menuToogle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 23px;
  border-bottom: 1px solid rgba(0,0,0,.25);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.navigation.active .menuToogle::before {
  transform: translateY(0) rotate(45deg);
}

.navigation.active .menuToogle::after {
  transform: translateY(0) rotate(-45deg);
  box-shadow: 0 0 0 #333;
}

.menuToogle::before {
  content: '';
  position: absolute;
  left: 20px;
  width: 30px;
  height: 2px;
  background: #333;
  transform: translateY(-8px);
  transition: .5s;
}

.menuToogle::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  left: 20px;
  background: #333;
  transform: translateY(8px);
  box-shadow: 0 -8px 0 #333;
  transition: .5s;
}

.navigation ul {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.navigation ul li {
  list-style: none;
  position: relative;
  width: 100%;
  height: 76px;
  border-radius: 12px;
  border: 8px solid transparent;
  transition: .5s;
}

.navigation ul li.active {
  transform: translateX(30px);
  background: #2f323f;
}

.navigation ul li.active::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 6px 5px 0 5px #2f323f;
  transition: scale(0);
  transform-origin: bottom right;
  transition: .5s;
}

.navigation ul li.active::before {
  right: 22px;
  transform: scale(1);
}

.navigation ul li.active::after {
  content: '';
  position: absolute;
  bottom: -28px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-right-radius: 20px;
  box-shadow: 6px -5px 0 5px #2f323f;
  transition: scale(0);
  transform-origin: bottom right;
  transition: .5s;
}

.navigation ul li.active::after {
  right: 22px;
  transform: scale(1);
}

.navigation ul li a {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
  z-index: 1000;
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #FFF;
  font-size: 1.75em;
  line-height: 60px;
  border: 6px solid transparent;
}

.navigation ul li.active a .icon {
  color: #FFF;
  background-color: var(--clr);
}

.navigation ul li a .icon::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr);
  filter: blur(8px);
  opacity: 0;
  transition: .5s;
}

.navigation ul li.active a .icon::before {
  opacity: .5;
}

.navigation ul li a .icon::after {
  content: '';
  position: absolute;
  top: 10px;
  left: -55px;
  width: 20px;
  height: 20px;
  display: block;
  background: var(--clr);
  border: 5px solid #2f323f;
  border-radius: 50%;
}

.navigation ul li a .text {
  position: relative;
  padding: 0 15px;
  color: #333;
  display: flex;
  align-items: center;
  height: 60px;
  opacity: 0;
  visibility: hidden;
  transition: .5s;
}

.navigation.active ul li a .text {
  visibility: visible;
  opacity: 1;
}

.navigation ul li.active a .text {
  color: #FFF;
}